package shop.bean;

public class OfferBean {
	private int id;
	private String name;
	private String description;
	private double price;
	private int country;
	private String region;
	private int quantity;
	//public boolean valid;

	public OfferBean(){
		
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}	
	
	public String getName() {
		return name;
	}

	public void setName(String newName) {
		name = newName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setCountry(int country) {
		this.country = country;
	}

	public int getCountry() {
		return country;
	}
	public String getCountryName(){
		if(country == 0) return "Germany";
		else return "France";
	}
	
	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}


}
